//package cm.handle;
//
//import cn.hutool.core.util.StrUtil;
//import com.alibaba.fastjson.JSONObject;
//import com.nengliang.bill.api.BillMatchApi;
//import com.nengliang.bill.req.BillRangeMatchReq;
//import com.xxl.job.core.context.XxlJobHelper;
//import com.xxl.job.core.handler.IJobHandler;
//import com.xxl.job.core.handler.annotation.XxlJob;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//public class BillParseTask extends IJobHandler {
//
//    private final static String BILL_PARSE_TASK = "billParseTask";
//
//    @Autowired
//    private BillMatchApi billMatchApi;
//
//    /**
//     * 任务执行状态通知
//     */
//    @Override
//    @XxlJob(BILL_PARSE_TASK)
//    public void execute() throws Exception {
//        BillRangeMatchReq qry = new BillRangeMatchReq();
//        String param = XxlJobHelper.getJobParam();
//        if(StrUtil.isNotBlank(param)){
//            qry = JSONObject.parseObject(param, BillRangeMatchReq.class);
//        }
//        log.info("{} param:{}",BILL_PARSE_TASK,qry);
//        billMatchApi.rangeMatch(qry);
//        log.info("{} end execute.....", BILL_PARSE_TASK);
//    }
//}
